package interactive.focusPhoto 
{
	import interactive.focusPhoto.item.PhotoItem;
	import interactive.focusPhoto.vo.PhotoVO;
	/**
	 * 同时创建所有元素的焦点图
	 * @author Ning
	 */
	public class TotalFocusPhoto extends FocusPhoto 
	{
		
		public function TotalFocusPhoto(itemClass:Class=null,itemWidth:Number=100,itemHeight:Number=100,delay:Number=5000) 
		{
			super(itemClass, itemWidth, itemHeight, delay);
		}
		/**
		 * 同时创建所有元素
		 */
		override public function create():void 
		{
			for (var i:int = 0; i < data.length; i++ )
			{
				var vo:PhotoVO = data[i] as PhotoVO;
				var item:PhotoItem = getItem();
				item.data = vo;
				items.push(item);
			}
		}
	}
}